package com.xexun.gpstracker.study;

import java.io.File;
import java.io.Serializable;

import android.os.Environment;
import com.xexun.gpstracker.util.CommUtil;
import com.xexun.gpstracker.vo.RelationType;
import com.xexun.gpstracker.vo.TermType;

public class Book {
    public String mFireDir;
    private long mId;
    private String mName;
    private String mAuthor;
    private String mTime;
    private String mNote;
    private String mDownUrl;
    private String mLocAddr;
    private String mSuffix;

    public Book() {
        mFireDir = Environment.getExternalStorageDirectory().getPath();
        mFireDir = mFireDir + "/SWTMP/";
        File file = new File(mFireDir);
        file.mkdirs();// 创建文件夹
    }

    public Book(String name,String author,String time,String note,String url,String addr) {
        mName = name;
        mAuthor = author;
        mTime = time;
        mNote = note;
        mDownUrl = url;
        mLocAddr = addr;

        mFireDir = Environment.getExternalStorageDirectory().getPath();
        mFireDir = mFireDir + "/SWTMP/";
        File file = new File(mFireDir);
        file.mkdirs();// 创建文件夹
    }

    public String getFireDir() {
        return mFireDir;
    }

    public long getId() {
        return mId;
    }

    public void setId(long id) {
        mId = id;
    }

    public String getName() {
        return mName;
    }

    public void setName(String name) {
        mName = name;
    }

    public String getAuthor() {
        return mAuthor;
    }

    public void setAuthor(String author) {
        mAuthor = author;
    }

    public String getTime() {
        return mTime;
    }

    public void setTime(String time) {
        mTime = time;
    }

    public String getNote() {
        return mNote;
    }

    public void setNote(String note) {
        mNote = note;
    }

    public String getUrl() {
        return mDownUrl;
    }

    public void setUrl(String url) {
        mDownUrl = url;
    }

    public String getSuffix() { return mSuffix; }

    public void setSuffix(String suffix) {
        mSuffix = suffix;
    }

    public String getmLocAddr() { return mLocAddr; }

    public void setmLocAddr(String addr) {
        mLocAddr = addr;
    }
}
